package com.material.operation.services.impl;

import com.material.operation.aos.MaterialsAo;
import com.material.operation.bean.CastingDistinguish;
import com.material.operation.daos.MaterialsDao;
import com.material.operation.services.MaterialsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author : hongwei.zhang
 * @className : operation - MaterialsServiceImpl
 * @description : 材料业务实现列
 * @date : 2020-11-16 20:58
 */
@Service
public class MaterialsServiceImpl implements MaterialsService {
    @Autowired
    private MaterialsDao materialsDao;

    @Override
    public CastingDistinguish findByName(String mechanicalName) {
        return materialsDao.findByName(mechanicalName);
    }

    @Override
    public List<String> findByRange(MaterialsAo materialsAo) {
        return materialsDao.findByRange(materialsAo);
    }
}
